package com.zl.ssh.tunnel;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "ssh")
public class SSHConfig {
    private boolean isEnabled ;
    private String user ; //用户名
    private String password ; //密码
    private String host; // 主机地址
    private int port; // 默认SSH端口
    private List<PortForwarding> portForwardingList; // 多个端口转发配置

    public boolean isEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(boolean isEnabled) {
        this.isEnabled = isEnabled;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public List<PortForwarding> getPortForwardingList() {
        return portForwardingList;
    }

    public void setPortForwardingList(List<PortForwarding> portForwardingList) {
        this.portForwardingList = portForwardingList;
    }
}
